package com.design.享元模式;

public class TestMain {

	public static void main(String[] args) {
		
		int extrinsic = 22;
		
		Flyweight fx = FlyweightFactory.getFlyweight("H");
		fx.operate( ++ extrinsic);
		
		Flyweight fy = FlyweightFactory.getFlyweight("W");
		fy.operate(++ extrinsic);
		
		Flyweight fyu = FlyweightFactory.getFlyweight("W");
		fyu.operate(++ extrinsic);
		
		Flyweight unx = FlyweightFactory.getFlyweight("U");
		unx.operate(++ extrinsic);
		
		
		
		
	}
	
}
